package com.genghis.ptas.question.dao;

import com.genghis.core.page.entity.Page;
import com.genghis.core.page.entity.PageParameter;
import com.genghis.ptas.question.entity.Answer;
import com.genghis.ptas.question.entity.Question;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: gaoyang
 * To change this template use File | Settings | File Templates.
 */
public interface QuestionDao {
    Page<Question> findAllQuestionPageList(PageParameter pageParameter, Question question);

    Page<Answer> findAllAnswerPageList(PageParameter pageParameter, Answer answer);

    void addQuestion(Question question);

    void editQuestion(Question question);

    Question findQuestionById(int id);

    void delAskByIds(String ids);

    List<Question> findAllQuestionByContent(String content);
}
